package base.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by 30509 on 2018/3/18.
 */
@Controller
@RequestMapping("/test")

public class MainController {
    @RequestMapping("/main")
    private ModelAndView main() throws Exception{
        ModelAndView main=new ModelAndView();
        main.setViewName("main");
        return main;
    }
    @RequestMapping("/top")
    private ModelAndView top(){
        ModelAndView top=new ModelAndView();
        top.setViewName("top");
        return top;
    }

    @RequestMapping("/index")
    private ModelAndView index(){
        ModelAndView index=new ModelAndView();
        index.setViewName("index");
        return index;
    }



    @RequestMapping("/foot")
    private ModelAndView foot(){
        ModelAndView foot=new ModelAndView();
        foot.setViewName("foot");
        return foot;
    }

}
